/*
 *  This file is part of WWWPal.
 *
 *  Copyright (C) 2003  Dr. John Punin, Department of Computer Science
 *  Rensselaer Polytechnic Institute
 *
 *  WWWPal is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  WWWPal is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Foobar; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef LOGR_PATHS_H
#define LOGR_PATHS_H

#include <sys/stat.h>
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include <sys/time.h>
#include <assert.h>
#include <gr_graph_fun.h>

typedef struct _web_path_node {
    long naccesses;
    LNode_type *ledges;
    void *info;
} WebPathStruct;

typedef struct _web_path_node *WebPathPtr;
 
WebPathPtr
new_web_path_node(void);

void
delete_web_path_node(WebPathPtr opn);

void
LOGR_set_path_naccesses(WebPathPtr usn,long num);

void
LOGR_inc_path_naccesses(WebPathPtr usn);

long
LOGR_get_path_naccesses(WebPathPtr usn);

void
LOGR_set_path_info(WebPathPtr upn,void * info);

void *
LOGR_get_path_info(WebPathPtr upn);

void
LOGR_set_path_ledges(WebPathPtr upn,LNode_type * ledges);

void
LOGR_add_path_edge(WebPathPtr upn,void *edge);

LNode_type *
LOGR_get_path_ledges(WebPathPtr upn);

int
LOGR_get_path_number_edges(WebPathPtr upn);

short
LOGR_is_paths_equal(WebPathPtr upn,WebPathPtr vpn);

short
LOGR_is_path_empty(WebPathPtr wpn);

int
LOGR_is_path_number_edges_lower(WebPathPtr u, WebPathPtr v);

int
LOGR_is_path_number_edges_bigger(WebPathPtr u,WebPathPtr v);


#endif


